package com.hector.meinewerk.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;


public class DateHelper {
	public static final String RFC_USA_1 = "MMM dd, yyyy";// Feb 27,
																	// 2012
																	// 05:40 PM
	public static String getDate(long milliSeconds, String dateFormat){
	    // Create a DateFormatter object for displaying date in specified format.
		SimpleDateFormat formatter = new SimpleDateFormat(dateFormat);

	    // Create a calendar object that will convert the date and time value in milliseconds to date. 
	     Calendar calendar = Calendar.getInstance();
	     calendar.setTimeInMillis(milliSeconds);
	     return formatter.format(calendar.getTime());
	}
}
